package lab02.Test05;

/**
 * Created by ASUS on 2017/10/15.
 */
public class Cube {
    //  属性
    private int Long;
    //  长
    private int Width;
    //  宽
    private int Height;
    //  高

    //  方法
    public void setVariable(int Long,int Width,int Height){
        this.Long = Long;
        this.Width = Width;
        this.Height = Height;
    }
    public int getVolume(){
        return Long * Width * Height;
    }
    public Cube(int Long,int Width,int Height){
        this.Long = Long;
        this.Width = Width;
        this.Height = Height;
    }
    public static void main(String[] args){
        Cube cube = new Cube(10,10,10);
        cube.setVariable(15,15,15);
        cube.getVolume();
    }
}
